﻿namespace CatFax.Entities
{
    /// <summary>
    /// Table storage entity class for audit row indexes
    /// </summary>
    public class AuditRowIndexEntity : Microsoft.Samples.ServiceHosting.StorageClient.TableStorageEntity
    {
        /// <summary>
        /// Last sequence number for the partition/row keys
        /// </summary>
        public int LastSeq { get; set; }

        /// <summary>
        /// Gets or sets RowPartition.
        /// </summary>
        public string RowPartition { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="AuditRowIndexEntity"/> class.
        /// </summary>
        public AuditRowIndexEntity()
        {
            PartitionKey = "Index";
        }
    }
}
